/*
 * utils.h
 *
 *  Created on: Nov 17, 2012
 *      Author: monitz
 */

#ifndef UTILS_H_
#define UTILS_H_

#include "Course.h"
#include "Student.h"
#include "CSStudent.h"
#include "PGStudent.h"
#include "PGCourse.h"
#include "CSCourse.h"
#include "ELCourse.h"
#include "../include/ImageOperations.h"
#include "../include/ImageLoader.h"
#include <vector>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdlib.h>
class utils {
public:
	utils();
	virtual ~utils();

	std::vector <Student*> parseStudents(int PGtodo,int CStodo,bool malag);
	std::vector <std::vector < Course* > > parseCourses(bool malag);
	std::vector <int> parseCurric();
	void log(std::stringstream &sstm);
	void showUniGraduation(std::vector <Student*> students);
private:
	int CSmaxSemesters;
	int PGmaxSemesters;
	int CSstudentsCounter;
	int PGstudentsCounter;
	std::vector<Student*> malagStudents;

	bool studentGraduation(ImageLoader& frame,Student& s,int depMaxSemesters, int xLocation);
};

#endif /* UTILS_H_ */
